package com.superbytecode.cloud.albb.consume.listener;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * All rights Reserved, Designed By www.super-master.com
 *
 * @ProjectName: beacon-cloud
 * @Package: com.superbytecode.cloud.albb.produce.listener
 * @ClassName: MQConsumerListener
 * @Description: []
 * <p> </p>
 * @Author: [Lance Ting]
 * @Date: 2024/10/24 11:23
 * @Version: V1.0
 * @Copyright: 2024 www.super-master.com Inc. All rights reserved.
 * TODO: 注意,本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
@Slf4j
@Component
@RocketMQMessageListener(consumerGroup = "beacon-albb", topic = "simple-topic")
public class AlbbConsumerSimpleListener implements RocketMQListener<String> {

    /**
     * @param message 消息
     */
    @Override
    public void onMessage(String message) {
        log.info("simple-topic:: received message: {}", message);
    }
}